package com.bzyd.shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 页面跳转接口
 */
@Controller
public class PageController {

    @RequestMapping("/{page}")
    public String page(@PathVariable("page")String page){
        return page;
    }

    //忽略favicon.ico的解决方案
    @GetMapping("favicon.ico")
    @ResponseBody
    void returnNoFavicon() {
    }
}
